package com.sixstones.fragment.service.impl;

import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sixstones.fragment.dao.SysUserDao;
import com.sixstones.fragment.entity.SysUserEntity;
import com.sixstones.fragment.service.SysUserService;

@Service
public class SysUserServiceImpl implements SysUserService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Resource
	private SysUserDao userDao;

	@Override
	@Transactional
	public int addUser(SysUserEntity user) {
		logger.info("add user:{}", user);
		return userDao.addSysUser(user);
	}
}
